const home = {
  state: {
    currentUrl: '',
    productModel: 'PaaS',
    isLeftLayer: false,
    logoImage: null,
    systemName: null,
    userInfo: null,
    menuList: null,
    topMenuList: null,
    pathRoute: null,
    pageSizesG: [10, 30, 50, 100],
    leftLayerList: [],
    tagLists: [],
    areaLists: [],
    menuName: '',
    currentTenantId: '',
    currentUserId: '',
    currentSiteInfo: {},
    subMenuList: [],
    userName: null,
    noticeList: [
      {
        title: '悦米营销云V2.0正式公测',
        time: '2020/07/20/22:00',
        content: `<p style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><strong><span style="font-family: Helvetica; color: #595961; font-weight: bold; font-style: normal; font-size: 12.0000pt; background: #ffffff;"><span style="font-family: Helvetica;line-height: 30px;">【正式发布公测版】千呼万唤始出来、犹抱琵琶半遮面，我们发布啦！</span></span></strong></p>
<p style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: 宋体; font-size: 10.5000pt;line-height: 26px;">&nbsp;</span></p>
<p style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;text-align:center;"><img src="http://static.oss.yuemia.com/202007151743410141.png" width="90%" height="90%" /><span style="font-family: 宋体; font-size: 10.5000pt;">&nbsp;</span></p>
<p style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: 宋体; font-size: 10.5000pt;">&nbsp;</span></p>
<p style="text-indent: 21pt; margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: 宋体; font-size: 10.5000pt;"><span style="font-family: 宋体; line-height: 26px;">经过长时间的打磨和尝试，我们重新以产品的思维对</span>MedChat<span style="font-family: 宋体;line-height: 26px;">进行了新的定义！依托业务中台的模式，建立起以市场需求为主的</span><span style="font-family: Calibri;">SaaS</span><span style="font-family: 宋体;">模式的服务群。用技术的话语来讲，那就是&ldquo;云生态&rdquo;的服务中台。</span></span></p>
<p style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: 宋体; font-size: 10.5000pt;"><span style="font-family: 宋体;line-height: 26px;">当前我们已经初步构建完成基础服务平台。基础服务平台以及前期的工作，主要围绕以</span></span><span style="font-family: 宋体; font-size: 10.5000pt;"><span style="font-family: 宋体;line-height: 26px;">平台站点、</span></span><span style="font-family: 宋体; font-size: 10.5000pt;"><span style="font-family: 宋体;line-height: 26px;">平台运维、</span></span><span style="font-family: 宋体; font-size: 10.5000pt;"><span style="font-family: 宋体;line-height: 26px;">服务平台、静态</span>H5<span style="font-family: 宋体;line-height: 26px;">、动态</span><span style="font-family: Calibri;">H5</span><span style="font-family: 宋体;">等</span><span style="font-family: Calibri;">5</span><span style="font-family: 宋体;line-height: 26px;">个维度进行构建！从平台运维、数据处理、服务管理、业务平台、移动端</span><span style="font-family: Calibri;">H5</span><span style="font-family: 宋体;line-height: 26px;">搭建等为企业服务构建从&ldquo;管&rdquo;、&ldquo;控&rdquo;、&ldquo;服&rdquo;等维度的一整套服务平台。</span></span></p>
<p style="text-indent: 21pt; margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: 宋体; font-size: 10.5000pt;">SaaS<span style="font-family: 宋体; line-height: 26px;">模式的悦米营销云是一种，为企业提供快速服务、简单应用、云端管理、一站分发等特点的综合服务平台。让企业简单接入、在线体验。当然，平台也在不断的完善和升级过程中，同时我们也针对不同等级的客户建立了不同级别版本权限的功能体验，为不同层次的客户开通更加丰富的功能来增强企业的资源管理和运营能力。</span></span></p>
<p style="margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;text-align:center;"><img src="http://static.oss.yuemia.com/202007151743550043.png" width="90%" height="90%" /><span style="font-family: Calibri; font-size: 10.5000pt;">&nbsp;</span></p>
<p style="text-indent: 21pt; margin: 0pt 0pt 0.0001pt; text-align: justify; font-family: Calibri; font-size: 10.5pt;"><span style="font-family: 宋体; font-size: 10.5000pt;line-height: 26px;"><span style="font-family: 宋体;line-height: 26px;">最后，感谢产品部的小伙伴们辛苦的赶工，以及其它同仁的支持和帮助。废话不多说，让我们开始公测体验吧！</span></span></p>`
      }
    ],
    currQaEditFakeId: '', // 用于问卷设置, 标题编辑组件聚焦
    ossInfo: '' // 获取oss配置
  },
  mutations: {
    setCurrentUrl (state, param) {
      state.currentUrl = param
    },
    setCurrentSiteInfo (state, param) {
      state.currentSiteInfo = param
    },
    setProductModel (state, param) {
      state.productModel = param
    },
    setMenuName (state, param) {
      state.menuName = param
    },
    setAreaLists (state, param) {
      state.areaLists = param
    },
    setpathRoute (state, param) {
      state.pathRoute = param
    },
    changeLeftLayer (state) {
      state.isLeftLayer = !state.isLeftLayer
    },
    setPcLogo (state, param) {
      state.logoImage = param.image
      state.systemName = param.system
    },
    setUserName (state, param) {
      state.userName = param
    },
    setMenuList (state, param) {
      state.menuList = param
    },
    setTopMenuList (state, param) {
      state.topMenuList = param
    },
    setLeftLayerList (state, param) {
      state.leftLayerList = param
    },
    setTagList (state, param) {
      let arr = []
      param.forEach(ele => {
        ele.tag_name = ele.tag_name + ' ' + ele.fans + '人'
        arr.push(ele)
      })
      state.tagLists = arr
    },
    currentTenantIdFn (state, param) {
      state.currentTenantId = param
    },
    currentUserIdFn (state, param) {
      state.currentUserId = param
    },
    // 存储当前菜单的子菜单，并跳转路由
    setSubMenus (state, param) {
      if (param.children && param.children[0]) {
        state.subMenuList = param.children
      } else {
        state.subMenuList = []
      }
    },
    setCurrQaEditFakeId (state, param) {
      state.currQaEditFakeId = param
    },
    setOssInfo (state, param) {
      state.ossInfo = param
    }
  }
}
export default home
